#!/usr/bin/python
# coding=utf-8 

from django import forms

from django.contrib.auth.models import User

from tutorial.models import Project

class UploadFileForm(forms.Form):
	title = forms.CharField(max_length=50)
	file = forms.FileField()


class RegisterForm(forms.ModelForm):
	""" Model form object used to create user in system"""
	class Meta:
		model = User
		# fields = '__all__'
		# exclude = []
		fields = ["username", "password", "email", "first_name", "last_name"]


class ProjectForm(forms.ModelForm):

	class Meta:
		model = Project
		fields = '__all__'

# a test for model form later
# 中文
# TODO
class ProjectAdminForm(forms.ModelForm):
	pass
